package cc.fs.kotlin.ui.demo

import android.os.Bundle
import android.os.Message
import android.widget.Button
import cc.fs.kotlin.R
import cc.fs.kotlin.ui.activity.helper.BaseActivity
import cc.fs.kotlin.utils.bindView

/**
 * Created by fostion on 3/3/16.
 */
class ExceptionDemo : BaseActivity() {

    val btn: Button by bindView(R.id.btn)

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        this.setContentView(R.layout.activity_demo_exception)

        btn.setOnClickListener {
            throw NullPointerException("数据为空")
        }
    }

    override fun handler(msg: Message) {

    }
}